const { User } = require('./model')

!(async function(){
  // 查询一条记录
  const updateRes = await User.update({
    nickName:'张三123'
  },
  {
    where: {
      userName: 'zhangsan'
    }
  })
  console.log('updateRes',updateRes[0] > 0)
})()